<!--
 * @Author: gao_m3
 * @Date: 2021-04-23 15:43:02
 * @LastEditors: wei_jt@ecidi.com
 * @LastEditTime: 2021-12-14 10:36:53
 * @Descripttion: 
-->
<template>
  <div class="access-limit">
    <div class="item-container">
      <fks-tabs
        v-model="item"
        style="height: 100%;"
      >
        <fks-tab-pane
          :label="LANG.ACCESS_TIME"
          name="time"
        >
          <limit-page
            v-if="item == 'time'"
            :type="false"
            style="height: 100%;"
          />
        </fks-tab-pane>
        <fks-tab-pane
          :label="LANG.ACCESS_ADDRESS"
          name="ip"
        >
          <limit-page
            v-if="item == 'ip'"
            :type="true"
            style="height: 100%;"
          />
        </fks-tab-pane>
      </fks-tabs>
    </div>
  </div>
</template>

<script>
import Mix from '@/mixins/module'
import LimitPage from './components/LimitPage'
export default {
  name: 'AccessLimit',
  components: { LimitPage },
  mixins: [Mix],
  data() {
    return {
      item: 'time' //time||ip
    }
  }
}
</script>

<style lang="scss" scoped>
.access-limit {
  width: 100%;
  min-width: 640px;
  height: 100%;
  padding: 28px;
  background-color: white !important;

  .item-container {
    width: 100%;
    height: 100%;

    ::v-deep .fks-tabs__content {
      height: calc(100% - 28px) !important;
      // height: 93%;
    }

    ::v-deep .fks-tab-pane {
      height: 100% !important;
    }
  }
}
</style>